lcWndGetEntByPoint Home

Returns handle to the entity located at the specified window point, within pickbox surroundings. The size of the pickbox is defined by the LC_PROP_G_PICKBOXSIZE property.

 HANDLE lcWndGetEntByPoint (
   HANDLE hLcWnd,
   int Xwin,
   int Ywin
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Xwin Ywin
  Coordinate in LiteCAD window. If -1 specified for both parameters, then cursor coordinates will be used.

Return Value

  Handle to the entity, if it has found at the specified point. If there are no object, the function returns NULL.

See Also

  lcWndGetEntByPoint2,   lcWndGetEntsByPoint,   lcWndGetCursorCoord

Code sample,   Retrieve objects